<!-- 改为jsp后 如有需要可按照以下方式include file  -->
<!--<%@include file="Inc/Conn.jsp" %>-->
<!--<%@include file="Inc/config.jsp" %>-->
<!--<%@include file="Inc/Function.jsp" %>-->


<!-- <%
dim Action,UserName,FoundErr,ErrMsg
dim rsUser,sqlUser
Action=trim(request("Action"))
UserName=trim(request("UserName"))
if UserName="" then
	UserName=session("UserName")
end if
if  UserName="" then
	if Action="" then
		response.redirect "UserServer.html"
	else
		FoundErr=True
		ErrMsg=ErrMsg & "<br><li>参数不足！</li>"
	end if
end if
if FoundErr=true then
	call WriteErrMsg()
else
	Set rsUser=Server.CreateObject("Adodb.RecordSet")
	sqlUser="select * from [User] where UserName='" & UserName & "'"
	rsUser.Open sqlUser,conn,1,3
	if rsUser.bof and rsUser.eof then
		FoundErr=True
		ErrMsg=ErrMsg & "<br><li>找不到指定的用户！</li>"
		call writeErrMsg()
	else
		if Action="Modify" then
			dim Sex,Email,Homepage
			Sex=trim(Request("Sex"))
			Email=trim(request("Email"))
			Homepage=trim(request("Homepage"))
			CompanyName=trim(request("CompanyName"))
			Add=trim(request("Add"))
			Receiver=trim(request("Receiver"))
			Postcode=trim(request("Postcode"))
			Phone=trim(request("Phone"))
			Mobile=trim(request("Mobile"))
			Fax=trim(request("Fax"))
			if Sex="" then
				founderr=true
				errmsg=errmsg & "<br><li>性别不能为空</li>"
			else
				sex=cint(sex)
				if Sex<>0 and Sex<>1 then
					Sex=1
				end if
			end if
			if Email="" then
				founderr=true
				errmsg=errmsg & "<br><li>Email不能为空</li>"
			else
				if IsValidEmail(Email)=false then
					errmsg=errmsg & "<br><li>您的Email有错误</li>"
			   		founderr=true
				end if
			end if
			if CompanyName="" then
				founderr=true
				errmsg=errmsg & "<br><li>公司名称不能为空</li>"
			end if
			if Add="" then
				founderr=true
				errmsg=errmsg & "<br><li>收货地址不能为空</li>"
			end if
			if Receiver="" then
				founderr=true
				errmsg=errmsg & "<br><li>收货人不能为空</li>"
			end if
			if Phone="" then
				founderr=true
				errmsg=errmsg & "<br><li>联系电话不能为空</li>"
			end if
			if FoundErr<>true then
				rsUser("Sex")=Sex
				rsUser("Email")=Email
				rsUser("HomePage")=HomePage
				rsUser("CompanyName")=CompanyName
				rsUser("Add")=Add
				rsUser("Receiver")=Receiver
				rsUser("Postcode")=Postcode
				rsUser("Phone")=Phone
				rsUser("Mobile")=Mobile
				rsUser("Fax")=Fax				
				rsUser("LastLoginTime")=Now()
				rsUser.update
				response.write"<SCRIPT language=JavaScript>alert('会员资料修改成功！');"
                response.write"javascript:history.go(-1)</SCRIPT>"				
			else
				call WriteErrMsg()
			end if
		else

%> -->

<!-- 改为jsp后 解开注释include file  -->
<!--<%@include file="Head.jsp"%>-->

<html>
<body>
<table width="970" height="17" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td background="imgbys/top17.gif"></td>
  </tr>
</table>
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="4"></td>
  </tr>
</table>
<table width="970" height="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="264" valign="top"><!-- #include file="Loop.html" -->
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="4"></td>
        </tr>
      </table>
        <table width="264" height="24" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFCEB">
          <tr>
            <td width="14"><img src="imgbys/top19.gif" width="10" height="6" /></td>
              <td width="71" valign="middle" class="ab21">服务中心</td>
              <td width="179" valign="middle" class="ab3">SERVICE CENTER </td>
          </tr>
      </table>
        <table width="264" height="8" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><img src="imgbys/top4.gif" width="264" height="8" /></td>
          </tr>
      </table>
        <table width="264" height="111" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="111" bgcolor="#F6F6F6"><table width="80%" height="8" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td></td>
              </tr>
              </table>
                  <table width="80%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="24%" align="center"><img src="imgbys/top20.gif" width="12" height="11" /></td>
                      <td width="76%"><a href="UserEdit.html" class="linkleft1">修改会员资料</a> </td>
                    </tr>
              </table>
                <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" background="imgbys/line1.gif">
                  <tr>
                    <td height="1"></td>
                  </tr>
              </table>
                <table width="80%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="24%" align="center"><img src="imgbys/top20.gif" width="12" height="11" /></td>
                      <td width="76%"><a href="UserEditPwd.html" class="linkleft1">修改会员密码</a></td>
                  </tr>
              </table>
                <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" background="imgbys/line1.gif">
                  <tr>
                    <td height="1"></td>
                  </tr>
              </table>
                <table width="80%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="24%" align="center"><img src="imgbys/top20.gif" width="12" height="11" /></td>
                      <td width="76%"><a href="FeedbackMember.html" class="linkleft1">站内留言中心</a> </td>
                  </tr>
              </table>
                <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" background="imgbys/line1.gif">
                  <tr>
                    <td height="1"></td>
                  </tr>
              </table>
                <table width="80%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="24%" align="center"><img src="imgbys/top20.gif" width="12" height="11" /></td>
                      <td width="76%"><a href="UserLogout.html?Action=Ch" class="linkleft1">退出会员中心</a> </td>
                  </tr>
              </table>
                <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" background="imgbys/line1.gif">
                  <tr>
                    <td height="1"></td>
                  </tr>
              </table>
                <table width="80%" height="48" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td></td>
                  </tr>
              </table></td>
          </tr>
        </table></td><td width="7" valign="top"></td>
    <td width="1" valign="top" bgcolor="#EAE5CF"></td>
    <td width="6" valign="top"></td>
    <td valign="top"><span id="tb_A101">
      <!--------------------显示最新产品的子程序结束--------------------->
      </span>
        <table width="692" height="23" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="10"><img src="imgbys/top19.gif" width="10" height="6" /></td>
            <td width="68" valign="middle" class="ab2">客户服务</td>
            <td width="452" valign="middle" class="ab3">CUSTOMER SERVICE</td>
            <td width="162" class="ab1">您现在的位置 &gt;&gt; 客户服务</td>
          </tr>
        </table>
      <table width="692" height="4" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td background="imgbys/top18.gif"></td>
          </tr>
      </table>
      <table width="98%" height="15" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="15"></td>
          </tr>
      </table>
      <form action="UserEdit.html" method="post" name="Form1" id="Form1">
        <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#E3E3E3" class='border'>
          <tr align="center" bgcolor="#FFFFFF" >
            <td height="40" colspan="2"><font color="#FF6600"><b>修改注册用户信息</b></font><font color="#ffffff" class="font14">&nbsp;</font></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="120" height="30" align="right">用 户 名：</td>
            <td height="30"><input name="UserName" value="" size="30"   maxlength="14" /></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="120" height="30" align="right">性别：</td>
            <td height="30">
            <!--<input type="radio" value="1" name="sex" <%if rsUser("Sex")=1 then response.write "CHECKED"%> />  -->
            <!-- 此行的逻辑 在上行 -->
            <input type="radio" value="1" name="sex" />
              男 &nbsp;&nbsp;
              <!--<input type="radio" value="0" name="sex" <%if rsUser("Sex")=0 then response.write "CHECKED"%>  />  -->
              <!-- 此行的逻辑 在上行 -->
              <input type="radio" value="0" name="sex"  />
              女</td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="120" height="30" align="right">Email地址：</td>
            <td height="30"><input name="Email" value="" size="30"   maxlength="50" />
            </td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="120" height="30" align="right">主页：</td>
            <td height="30"><input   maxlength="100" size="30" name="homepage" value="" /></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="120" height="30" align="right">公司名称：</td>
            <td height="30"><input name="CompanyName" value="" size="30" maxlength="20" /></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="120" height="30" align="right">收货地址：</td>
            <td height="30"><input name="Add" value="" size="30" maxlength="50" /></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="30" align="right">收货人：</td>
            <td height="30"><input name="Receiver" value="" size="30" maxlength="50" /></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="30" align="right">邮政编码：</td>
            <td height="30"><input name="Postcode" value="" size="30" maxlength="50" /></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="30" align="right">联系电话：<br /></td>
            <td height="30"><input name="Phone" value="" size="30" maxlength="50" /></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="30" align="right">手机：</td>
            <td height="30"><input name="Mobile" value="" size="30" maxlength="50" /></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="30" align="right">传 真：</td>
            <td height="30"><input name="Fax" value="" size="30" maxlength="50" /></td>
          </tr>
          <tr align="center" bgcolor="#FFFFFF" >
            <td height="40" colspan="2"><input name="Action" type="hidden" id="Action" value="Modify" />
                <input name="Submit2"   type="submit" id="Submit" value="保存修改结果" />
            </td>
          </tr>
        </table>
    </form></td>
  </tr>
</table>
<!-- 改为jsp后 解开注释include file  -->
<!--<%@include file="Inc/Foot.jsp"%>-->
</BODY></HTML>
<!-- <%
		end if
	end if
	rsUser.close
	set rsUser=nothing
end if
call CloseConn()
%> -->